package cn.lyd.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import sun.plugin2.message.Serializer;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor

/*表名*/
@TableName("emp")
public class Emp implements Serializable {

    /*主键*/
    @TableId(type = IdType.AUTO)
    @TableField(value = "id",exist = true)//字段名
    private Long id;
    @TableField(value = "ename",exist = true)
    private String ename;
    @TableField(value = "ephone",exist = true)
    private String ephone;
    @TableField(value = "eage",exist = true)
    private Integer eage;


}
